//组件逻辑抽离，用户登入登出等功能
import { ref } from "vue";

interface IUserData {
  username: string;
  password: string;
}
export const userYser = () => {
  const loginModel = ref<IUserData>({
    username: "",
    password: "",
  });
  const user = ref();
  const login = () => {};

  return {
    loginModel,
    user,
    login,
  };
};
